//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;

namespace OpenLS.Vml
{
    class AllShapeAttributes
    {
        #region IOfficeXmlSerializable Members

        public void ReadXml(ReadContext context)
        {
            ShapeAttributes.ReadXml(context);
            OfficeShapeAttributes.ReadXml(context);
        }

        public void WriteXml(WriteContext context)
        {
            ShapeAttributes.WriteXml(context);
            OfficeShapeAttributes.WriteXml(context);
        }

        #endregion

        private ShapeAttributes _shape;

        public ShapeAttributes ShapeAttributes
        {
            get
            {
                if (_shape == null)
                    _shape = new ShapeAttributes();
                return _shape;
            }
        }
        private OfficeShapeAttributes _officeShape ;

        public OfficeShapeAttributes OfficeShapeAttributes
        {
            get
            {
                if (_officeShape == null)
                    _officeShape = new OfficeShapeAttributes();
               return _officeShape;
            }
        }

        public string FillColor 
        {
            get { return ShapeAttributes.FillColor; }
            set { this.ShapeAttributes.FillColor = value; }
        }
    }
}
